package ex.hql.controller;

import ex.hql.pojo.Admin;
import ex.hql.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program:yeb
 * @author: hql
 * @Time: 2021/9/9  11:14
 * @description: 在线聊天
 */
@RestController
public class ChatController {

    @Autowired
    private IAdminService adminService;

    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/chat/hrs")
    public List<Admin> getAllAdmin(String keywords){
        return adminService.getAllAdmins(keywords);
    }


}
